![]() |
PATH![]() |
![]() ![]() |
The Appearance Manager declares the type for an application-defined menu title drawing function as follows:
typedef pascal (void, MenuTitleDrawingProcPtr)(
const Rect *inBounds,
SInt16 inDepth,
Boolean inIsColorDevice,
SInt32 inUserData);
The Appearance Manager defines the data type MenuTitleDrawingUPP to identify the universal procedure pointer for an application-defined menu title drawing function:
typedef UniversalProcPtr MenuTitleDrawingUPP;
You typically use the NewMenuTitleDrawingProc macro like this:
MenuTitleDrawingUPP myMenuTitleDrawingUPP;
myMenuTitleDrawingUPP = NewMenuTitleDrawingProc(MyMenuTitleDrawingProc);
You typically use the CallMenuTitleDrawingProc macro like this:
CallMenuTitleDrawingProc(myMenuTitleDrawingUPP, inBounds, inDepth,
inIsColorDevice, inUserData);
See MyMenuTitleDrawingProc for a discussion of how to declare a menu title drawing function.